home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / v cisle / htttrack / httrack-3.41-3.exe / {app} / src / htsconfig.h < prev    next >
C/C++ Source or Header  |  2005-08-12  |  4KB  |  142 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. Please visit our Website: http://www.httrack.com
  29. */
  30.  
  31.  
  32. /* ------------------------------------------------------------ */
  33. /* File: Global engine definition file                          */
  34. /* Author: Xavier Roche                                         */
  35. /* ------------------------------------------------------------ */
  36.  
  37. // Ensemble des paramΦtres du robot
  38.  
  39. #ifndef HTTRACK_GLOBAL_ENGINE_DEFH
  40. #define HTTRACK_GLOBAL_ENGINE_DEFH
  41.  
  42. // ------------------------------------------------------------
  43. // DΘfinitions du ROBOT
  44.  
  45. // accΦs des miroirs pour les autres utilisateurs (0/1)
  46. #define HTS_ACCESS 1
  47.  
  48. // temps de poll d'une socket: 1/10s
  49. #define HTS_SOCK_SEC 0
  50. #define HTS_SOCK_MS 100000
  51.  
  52. // nom par dΘfaut
  53. #define DEFAULT_HTML "index.html"
  54.  
  55. // nom par dΘfaut pour / en ftp
  56. #define DEFAULT_FTP "index.txt"
  57.  
  58. // nom par dΘfaut pour / en mms
  59. #define DEFAULT_MMS "default.avi"
  60.  
  61. // extension par dΘfaut pour fichiers n'en ayant pas
  62. #define DEFAULT_EXT       ".html"
  63. #define DEFAULT_EXT_SHORT ".htm"
  64. //#define DEFAULT_EXT       ".txt"
  65. //#define DEFAULT_EXT_SHORT ".txt"
  66.  
  67. // Θviter les /nul, /con..
  68. #define HTS_OVERRIDE_DOS_FOLDERS 1
  69.  
  70. // indexing (keyword)
  71. #define HTS_MAKE_KEYWORD_INDEX 1
  72.  
  73. // poll stdin autorisΘ? (0/1)
  74. #define HTS_POLL 1
  75.  
  76. // vΘrifier les liens sans extension (0/1) [α Θviter, trΦs lent]
  77. #define HTS_CHECK_STRANGEDIR 0
  78.  
  79. // le slash est un html par dΘfaut (exemple/ est toujours un html)
  80. #define HTS_SLASH_ISHTML 1
  81.  
  82. // supprimer index si un rΘpertoire identique existe
  83. #define HTS_REMOVE_ANNOYING_INDEX 1
  84.  
  85. // Θcriture directe dur disque possible (0/1)
  86. #define HTS_DIRECTDISK 1
  87.  
  88. // always direct-to-disk (0/1)
  89. #define HTS_DIRECTDISK_ALWAYS 1
  90.  
  91. // gΘrer une table de hachage?
  92. // REMOVED
  93. // #define HTS_HASH 1
  94.  
  95. // fast cache (build hash table)
  96. #define HTS_FAST_CACHE 1
  97.  
  98. // le > peut Ωtre considΘrΘ comme un tag de fermeture de commentaire (<!-- > est valide)
  99. #define GT_ENDS_COMMENT 1
  100.  
  101. // always adds a '/' at the end if a '~' is encountered (/~smith -> /~smith/)
  102. #define HTS_TILDE_SLASH 0
  103.  
  104. // always transform a '//' into a sigle '/'
  105. #define HTS_STRIP_DOUBLE_SLASH 0
  106.  
  107. // case-sensitive pour les dossiers et fichiers (0/1)
  108. // [normalement 1, mais pose des problΦmes (url malformΘe par exemple) et n'est pas trΦs utile..
  109. // ..et pas bcp respectΘ]
  110. // REMOVED
  111. // #define HTS_CASSE 0
  112.  
  113. // Un fichier ayant une taille diffΘrente du content-length doit il Ωtre annulΘ?
  114. // SEE opt.tolerant and opt.http10
  115. // #define HTS_CL_IS_FATAL 0
  116.  
  117. // une erreur supprime le fichier sur disque
  118. // (non fixΘ pour cause de retry)
  119. #define HTS_REMOVE_BAD_FILES 0
  120.  
  121. // en cas de Range: xx- donnant un Content-length: xx
  122. // alors skipper le fichier, considΘrΘ comme transmis
  123. // #define HTS_SKIP_FULL_RANGE 1
  124.  
  125. // nombre max de filtres que l'utilisateur peut fixer
  126. // #define HTS_FILTERSMAX 10000
  127. #define HTS_FILTERSINC 1000
  128.  
  129. // connect non bloquant? (poll sur write)
  130. #define HTS_XCONN 1
  131.  
  132. // gethostbyname non bloquant? (gestion multithread)
  133. #define HTS_XGETHOST 1
  134.  
  135. // α partir de combien de secondes doit-on Θtudier le taux de transfert?
  136. #define HTS_WATCHRATE 15
  137.  
  138. // ------------------------------------------------------------
  139. //
  140.  
  141. #endif
  142.